package top.hymsk.ecommerce.pojo.status;

/**
 * @author 花于陌上开
 */
public enum ProductStatusCode {
    ON_SALE(1, "售卖中",0),
    OUT_OF_SALE(0, "停售",0),

    //至尊VIP 权重+1.5 10000元/件/月
    //超级VIP 权重+1.0 5000元/件/月
    //普通VIP 权重+0.5 2000元/件/月
    ON_SALE_VIP(2,"普通VIP",0.5),
    ON_SALE_SUPER_VIP(3,"超级VIP",1.0),
    ON_SALE_SUPREMACY_VIP(4,"至尊VIP",1.5),
    ;

    private final int statusCode;
    private final String description;
    private final double weight;

    ProductStatusCode(int statusCode, String description,double weight) {
        this.statusCode = statusCode;
        this.description = description;
        this.weight=weight;
    }

    public double getWeight() {
        return weight;
    }

    public int getStatusCode() {
        return this.statusCode;
    }

    public String getDescription() {
        return this.description;
    }
}
